package trabajoISW2.presentation.shared;


public class OrderDTO {
	
	private int orderId;
	private CartDTO cart;
	private String creditCard;
	private AddressDTO address;
	private boolean finished = false;
	
	public OrderDTO(int id,CartDTO c, String cc, AddressDTO ad){
		orderId = id;
		cart = c;
		creditCard = cc;
		address = ad;
	}
	public OrderDTO (CartDTO c){
		cart = c;
	}


	public CartDTO getCart() {
		return cart;
	}

	public void setCart(CartDTO c) {
		this.cart = c;
	}

	public String getCreditCard() {
		return creditCard;
	}

	public void setCreditCard(String creditCard) {
		this.creditCard = creditCard;
	}


	public void setAddress(AddressDTO address) {
		this.address = address;
	}


	public AddressDTO getAddress() {
		return address;
	}


	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}


	public int getOrderId() {
		return orderId;
	}


	public void setFinished(boolean finished) {
		this.finished = finished;
	}


	public boolean isFinished() {
		return finished;
	}


	
	

}
